var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var ObjectId = Schema.Types.ObjectId;

var messageSchema = new Schema({
	catName:String,
	phone:String,
	username:String,
    content:String,
    qq:String,
    type:String,
	typeinfo:String,
	publish: {
		type: Date,
		default: Date.now
	}
});

var Message = mongoose.model('message', messageSchema, 'message');

module.exports = Message;
